package com.ruoyi.finance.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 分销记录表对象 distributionrecord
 * 
 * @author ruoyi
 * @date 2025-06-10
 */
public class Distributionrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分销员id */
    private Integer distributorId;

    /** 家长id */
    @Excel(name = "家长id")
    private Integer parentId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 校区id */
    @Excel(name = "校区id")
    private Integer campusId;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer goodId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal money;

    /** 分销员提现比率 */
    @Excel(name = "分销员提现比率")
    private BigDecimal distributorWithdrawalRate;

    /** 备用字段1 */
    private String demo1;

    /** 备用字段2 */
    private String demo2;

    /** 备用字段3 */
    private String demo3;

    public void setDistributorId(Integer distributorId) 
    {
        this.distributorId = distributorId;
    }

    public Integer getDistributorId() 
    {
        return distributorId;
    }

    public void setParentId(Integer parentId) 
    {
        this.parentId = parentId;
    }

    public Integer getParentId() 
    {
        return parentId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setCampusId(Integer campusId) 
    {
        this.campusId = campusId;
    }

    public Integer getCampusId() 
    {
        return campusId;
    }

    public void setGoodId(Integer goodId) 
    {
        this.goodId = goodId;
    }

    public Integer getGoodId() 
    {
        return goodId;
    }

    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }

    public void setDistributorWithdrawalRate(BigDecimal distributorWithdrawalRate) 
    {
        this.distributorWithdrawalRate = distributorWithdrawalRate;
    }

    public BigDecimal getDistributorWithdrawalRate() 
    {
        return distributorWithdrawalRate;
    }

    public void setDemo1(String demo1) 
    {
        this.demo1 = demo1;
    }

    public String getDemo1() 
    {
        return demo1;
    }

    public void setDemo2(String demo2) 
    {
        this.demo2 = demo2;
    }

    public String getDemo2() 
    {
        return demo2;
    }

    public void setDemo3(String demo3) 
    {
        this.demo3 = demo3;
    }

    public String getDemo3() 
    {
        return demo3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("distributorId", getDistributorId())
            .append("parentId", getParentId())
            .append("userId", getUserId())
            .append("campusId", getCampusId())
            .append("goodId", getGoodId())
            .append("money", getMoney())
            .append("distributorWithdrawalRate", getDistributorWithdrawalRate())
            .append("createTime", getCreateTime())
            .append("demo1", getDemo1())
            .append("demo2", getDemo2())
            .append("demo3", getDemo3())
            .toString();
    }
}
